{foreach from=$checkPaymentErrors key=error item=value}
	{if $error == 'NOT_OWNER'}
		<p class="error">[[You're not the owner of this payment]]</p>
	{elseif $error == 'NOT_LOGGED_IN'}
		<p class="error">[[Please log in to place a listing. If you do not have an account, please]] <a href="{$GLOBALS.site_url}">[[Register]]</a></p>
		<br/><br/>
		{module name="users" function="login"}
	{/if}
{foreachelse}
	<br />
	[[Dear customer!]]<br /><br />

	{capture name=product_info_price}
		[[$product_info.price]]
	{/capture}
	{assign var="product_info_price" value=$smarty.capture.product_info_price}
	{assign var="product_info_subscription_period" value=$product_info.subscription_period}
	{assign var="currency_sign" value=$GLOBALS.settings.transaction_currency}
	{if $type == 'product'}
		[[Please make a payment in the amount of $currency_sign $product_info_price for product(s)]]:
		{foreach name="product_names_loop" item="productName" from=$productsNames}
			<strong>[[{$productName}]]</strong>{if !$smarty.foreach.product_names_loop.last}, {/if}
		{/foreach}
	{elseif $type == 'listing'}
		[[Payment for listing ID]] {$objectSID}
	{elseif $type == 'listings'}
		[[Payment for listings #]] {$objectSID}
	{elseif $type == 'featured_listing'}
		[[Payment for upgrade listing ID]] {$objectSID} [[to featured]]
	{elseif $type == 'priority_listing'}
		[[Payment for upgrade listing ID]] {$objectSID} [[to priority]]
	{/if}

	{if $errors}
	[[The following errors occured:]]<br />
		{foreach from=$errors key=error item=error_data}
			{if $error == 'NOT_IMPLEMENTED'}<p class="error">[[There is something missing in the code]]</p>{/if}
			{if $error == 'PRODUCT_PRICE_IS_NOT_SET'}<p class="error">[[No price is defined for this payment]]</p>{/if}
			{if $error == 'PRODUCT_NAME_IS_NOT_SET'}<p class="error">[[Product name is not defined]]</p>{/if}
		{/foreach}
	{/if}
	<p>[[Please choose from the following payment methods:]]</p>

	{foreach from=$gateways item=gateway}
		<form action="{$gateway.url}" method="post">
			{$gateway.hidden_fields}
			<br/><input type='submit' value='{$gateway.caption}' class="paymentButton" />
		</form>
	{/foreach}

{/foreach}